﻿<%@ Page Title="AddCar" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SearchCar.aspx.cs" Inherits="CarRental.View.AddCar" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1>Search Car</h1>
    </hgroup>
        <%--<p class="message-info">
           
        </p>

        <p class="validation-summary-errors">
            <asp:Literal runat="server" ID="ErrorMessage" />
        </p>--%>

        <fieldset>
            <legend>Search Car</legend>
            <table id ="t_searchcar" runat="server">
                <tr>
                    <td>
                        <asp:Label ID="lb_Color" runat="server" AssociatedControlID="ddlColor">Color</asp:Label>
                        <asp:DropDownList ID="ddlColor" runat="server" Width="200px" Height="25px"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="lb_type" runat="server" AssociatedControlID="ddlCarType">Car Type</asp:Label>
                        <asp:DropDownList ID="ddlCarType" runat="server" Width="200px" Height="25px"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="lb_depot" runat="server" AssociatedControlID="ddlDepot">Depot</asp:Label>
                        <asp:DropDownList ID="ddlDepot" runat="server" Width="200px" Height="25px"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="lb_drivetrains" runat="server" AssociatedControlID="ddlDrivetrains">Drivetrains</asp:Label>
                        <asp:DropDownList ID="ddlDrivetrains" runat="server" Width="200px" Height="25px"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button runat="server" ID="btnSearchCar" Text="Search Car" OnClick="btnSearchCar_Click" Width="116px" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:GridView ID="gv_searchcar" runat="server" AutoGenerateColumns="False" Width="879px">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                           <asp:Image ID="Img_car" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Car Model">
                                    <ItemTemplate>
                                            <%--<asp:Label ID="Label1" runat="server" Text='<%# Eval("car_model") %>'></asp:Label>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Car Type">
                                    <ItemTemplate>
                                            <%--<asp:Label ID="Label1" runat="server" Text='<%# Eval("car_model") %>'></asp:Label>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Depot">
                                    <ItemTemplate>
                                            <%--<asp:Label ID="Label1" runat="server" Text='<%# Eval("car_model") %>'></asp:Label>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Drivetrains">
                                    <ItemTemplate>
                                            <%--<asp:Label ID="Label1" runat="server" Text='<%# Eval("car_model") %>'></asp:Label>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Drivetrains">
                                    <ItemTemplate>
                                            <%--<asp:Label ID="Label1" runat="server" Text='<%# Eval("car_model") %>'></asp:Label>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Color">
                                    <ItemTemplate>
                                            <%--<asp:Label ID="Label1" runat="server" Text='<%# Eval("car_model") %>'></asp:Label>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Price">
                                    <ItemTemplate>
                                            <%--<asp:Label ID="Label1" runat="server" Text='<%# Eval("car_model") %>'></asp:Label>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                           <asp:CheckBox ID="cb_book" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td colspan ="4" align="right">
                        <asp:Button ID="btn_AddCart" runat="server" OnClick="btn_AddCart_Click" Text="Continue To Book"/>
                    </td>
                </tr>    
                    
             </table>    
            
        </fieldset>
</asp:Content>
